<template>
  <div class="page-container">
    <el-card>
      <template #header>
        <div class="card-header">
          <span>页面1</span>
        </div>
      </template>
      <div class="page-content">
        <h2>这是页面1</h2>
        <p>这是一个示例页面，用于演示动态路由功能。</p>
        <el-button type="primary">示例按钮</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'

onMounted(() => {
  console.log('Page1 组件已挂载')
})
</script>

<style scoped lang="less">
.page-container {
  padding: 20px;
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
  }
  
  .page-content {
    text-align: center;
    padding: 40px 20px;
    
    h2 {
      color: #409eff;
      margin-bottom: 20px;
    }
    
    p {
      color: #666;
      margin-bottom: 30px;
      line-height: 1.6;
    }
  }
}
</style>
